home *** CD-ROM | disk | FTP | other *** search
/ Risc World 5 / Risc World 5.iso / SOFTWARE / Issue5 / PD / DIRSYNC / LegalStuff / gnudiff / GMakefile < prev    next >
Makefile  |  2002-11-24  |  1KB  |  69 lines

  1. OPTS =    -DHAVE_CONFIG_H -DCHAR_BIT=8 -DUSING_POSIX -DVOID=void\
  2.     -DWIFEXITED -DWEXITSTATUS\
  3.     "-DDEFAULT_DIFF_PROGRAM=\"diff\""\
  4.     "-DDEFAULT_EDITOR_PROGRAM=\"ed\""\
  5.     "-DDIFF_PROGRAM=\"diff\""\
  6.     "-DPR_PROGRAM=\"pr\""\
  7.     "-DGNU_PACKAGE=\"GNU diffutils\"" "-DVERSION=\"2.7\""
  8.  
  9. CC        = gcc
  10. CCflags        = -c -O2 -mstubs -mthrowback -isystem ^.lib -isystem @
  11. Link        = drlink
  12. Linkflags    = -nounused -e ^.lib.libpatch -o
  13.  
  14. # LIBS =    gcc:o.libgcc ^.lib.o.gststubs ^.lib.o.libgnu
  15. LIBS =    gcc:o.libgcc C:o.stubs ^.lib.o.libgnu
  16.  
  17. # Object files
  18.  
  19. OBJS =        o.version o.freesoft
  20. cmp_Objs =    o.cmp $(OBJS)
  21. diff_Objs =    o.diff o.analyze o.dir o.io o.util o.context o.ed o.ifdef o.normal o.side $(OBJS)
  22. diff3_Objs =    o.diff3 $(OBJS)
  23. sdiff_Objs =    o.sdiff $(OBJS)
  24.  
  25. # Templates
  26.  
  27. c.% o.%:
  28.         $(CC) $(CCflags) $(OPTS) $< -o $@
  29.  
  30. # Main target
  31.  
  32. All:        cmp diff diff3 sdiff
  33.  
  34. cmp:        $(cmp_Objs) $(LIBS)
  35.         $(Link) $(Linkflags) cmp $(cmp_Objs) $(LIBS)
  36.  
  37. diff:        $(diff_Objs) $(LIBS)
  38.         $(Link) $(Linkflags) diff $(diff_Objs) $(LIBS)
  39.  
  40. diff3:        $(diff3_Objs) $(LIBS)
  41.         $(Link) $(Linkflags) diff3 $(diff3_Objs) $(LIBS)
  42.  
  43. sdiff:        $(sdiff_Objs) $(LIBS)
  44.         $(Link) $(Linkflags) sdiff $(sdiff_Objs) $(LIBS)
  45.  
  46. Clean:
  47.         ifthere o.* then wipe o.* ~cfr~v
  48.         remove cmp
  49.         remove diff
  50.         remove diff3
  51.         remove sdiff
  52.  
  53. # Dependencies:
  54.  
  55. o.analyze:    c.analyze
  56. o.cmp:        c.cmp
  57. o.context:    c.context
  58. o.diff:        c.diff
  59. o.diff3:    c.diff3
  60. o.dir:        c.dir
  61. o.ed:        c.ed
  62. o.ifdef:    c.ifdef
  63. o.io:        c.io
  64. o.normal:    c.normal
  65. o.sdiff:    c.sdiff
  66. o.side:        c.side
  67. o.util:        c.util
  68. o.version:    c.version
  69.